<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
    <form action="{% url 'myapp:login' %}" method="post">
        {% csrf_token %}
        <span>用户名：</span><input type="text" placeholder="请输入用户名" name="username"/><br>
        <span>密&emsp;码：</span> <input type="password" placeholder="请输入密码" name="password"><br>
        <input type="submit" value="登陆">
    </form>
</body>
</html>